package com.wh.springbootrabbitmq.controller;

import com.wh.springbootrabbitmq.manager.RabbitmqManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther: HuiEr
 * @Date: 2020/3/15 18:18
 * @Description
 */
@RestController
public class Mycontroller {
    @Autowired
    private RabbitmqManager rabbitmqManager;
    @RequestMapping("test")
    public String test(){
        rabbitmqManager.routerSend();
        return "chenggong";
    }
}
